package com.chenliang.service.impl;

import com.chenliang.dao.IOrdersDao;
import com.chenliang.domain.Orders;
import com.chenliang.service.IOrdersService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: mavenSSM
 * @Package: com.chenliang.service.impl
 * 作用：
 */
@Service
public class OrdersServiceImpl implements IOrdersService {
    @Autowired
    private IOrdersDao ordersDao;

    @Override
    public List<Orders> findAll(Integer page, Integer pageSize) {
        PageHelper.startPage(page,pageSize);
      return ordersDao.findAll();
    }

    @Override
    public Orders findShow(String id) {
       return ordersDao.findShow(id);
    }


}
